<template>
  <div id="app">
    <router-view />
    <theme-picker />
    <footer class="beian-link">
      <!-- <p class="police-info">
        <img src="@/assets/images/head-logo.png" width="20" />
        <a href="https://beian.mps.gov.cn/#/query/webSearch?code=61011302001964" rel="noreferrer"
          target="_blank">公安备案申请中</a>
      </p> -->
      <a href="https://beian.miit.gov.cn/" target="_blank">晋ICP备2024048543号-2</a>
    </footer>
  </div>
</template>

<script>
import ThemePicker from "@/components/ThemePicker";

export default {
  name: "App",
  components: { ThemePicker },
  metaInfo() {
    return {
      title: this.$store.state.settings.dynamicTitle && this.$store.state.settings.title,
      titleTemplate: title => {
        return title ? `${title} - ${process.env.VUE_APP_TITLE}` : process.env.VUE_APP_TITLE
      }
    }
  }
};
</script>

<style scoped>
#app .theme-picker {
  display: none;
}

/* ICP备案样式 */
.beian-link {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  text-align: center;
  padding: 2px 0;
  background-color: #f8f8f8;
  border-top: 1px solid #e7e7e7;
  box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  transition: all 0.3s ease;
}

.beian-link a {
  color: #666;
  text-decoration: none;
  font-size: 14px;
}

/* 公安备案样式 */
.police-info {
  margin: 4px 0 2px;
  font-size: 12px;
}

.police-info img,
.police-info a {
  vertical-align: middle;
}

.police-info a {
  color: #999;
  text-decoration: none;
  margin-left: 4px;
}

/* ----------- 移动端隐藏footer ----------- */
/* @media (max-width: 768px) {
  .beian-link {
    display: none;
  }
} */
</style>